package com.netease.dylan.dpi;

public class Main {
	public static void main(String[] args) {
		System.out.println(getDPI(800, 480, 4.0));
//		System.out.println(getDPI(960, 640, 3.5));
	}
	
	public static long getDPI(double resolutionX, double resolutionY, double size) {
		double resolutionSize = Math.hypot(resolutionX, resolutionY);
		return Math.round(resolutionSize / size);
	}
}
